import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: { dictCode }
  })
}
/**
 * 获取系统配置名称
 */
export function getConfigByName(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sys/sysConfig/getByName',
    method: 'POST',
		data
  })
}

export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/userAuthApply/queryPage',
    method: 'post',
    data
  })
}

export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/userAuthApply/get',
    method: 'post',
    data
  })
}

export function audit(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/userAuthApply/audit',
    method: 'post',
    data
  })
}
/**
 * 异步企业部门树
 */
export function getComAndOrgTree(data) {
	return request({
		baseURL: '/API-ENTERPRISE-BACKEND/',
		url: '/backend/orgInfo/queryOrgAndDep',
		method: 'post',
		data
	})
}
